home *** CD-ROM | disk | FTP | other *** search
/ Chip: Hang es video / CHIP_ZENESZERKESZTO_2005.ISO / audio_3 / visual / robotfunk / setup.exe / {app} / main.dxr / ui_161.ls < prev    next >
Encoding:
Text File  |  2003-11-19  |  930 b   |  40 lines

  1. property md
  2. global preloadlist, select, fpslist, curscript
  3.  
  4. on mouseDown me
  5.   md = 1
  6. end
  7.  
  8. on mouseLeave me
  9.   md = 0
  10. end
  11.  
  12. on mouseUp me
  13.   if md then
  14.     curscript = "loadbank"
  15.     fileName = baGetFilename("load", "c:", EMPTY, "Flowmotion Banks|*.bnk", 0, "Open Bank", 0, 400, 300)
  16.     if fileName <> EMPTY then
  17.       fileLink = new(xtra("vList"), fileName)
  18.       pre = read(fileLink)
  19.       pl = []
  20.       repeat with i = 1 to pre.count
  21.         pl[i] = []
  22.         repeat with j = 1 to pre[i].count - 2
  23.           if pre[i].count >= j then
  24.             if pre[i][j].ilk = #image then
  25.               pl[i][j] = pre[i][j]
  26.             end if
  27.           end if
  28.         end repeat
  29.         if pre[i].count >= j then
  30.           if pre[i][j].ilk = #image then
  31.             member(i, "thumbnails").image = pre[i][j]
  32.           end if
  33.           fpslist[i] = pre[i][j + 1]
  34.         end if
  35.       end repeat
  36.       preloadlist = pl
  37.     end if
  38.   end if
  39. end
  40.